home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_actor_oldlady.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
1KB
|
59 lines
# Jones 3D Cog Script
#
# actor_OldLady.cog
#
# [RT]
#
# (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
#
# ===================================================================
symbols
message created
message damaged
model head0=head_ol_asound.3do local
model head1=head_ol_amsound.3do local
model head2=head_ol_osound.3do local
sound hurtSnd=inxw001.wav local # "Be careful, young man."
thing lady local
int bTalking=0 local
end
# ===================================================================
code
created:
lady = GetSenderRef();
# Heads!
SetThingVoiceHeads(lady, "llhead", "", "head_ol_asound.3do", "head_ol_amsound.3do", "head_ol_osound.3do");
return;
# -------------------------------------------------------------------
damaged:
if (GetThingParent(GetSourceRef()) != GetLocalPlayerThing()) return;
if (bTalking) return;
bTalking = 1;
lady = GetSenderRef();
# Start the voice & wait...
PlayVoice(lady, hurtSnd, 1.0, 1);
bTalking = 0;
return;
end